From: Ray Strode Date: Sat, 17 Sep 2011 22:45:15 +0000 (-0400) Subject: loginDialog: subtract padding when drawing focus line X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7678 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=84661986261d69e3213868a23a2a22096ab6d6b1;p=gnome-shell.git loginDialog: subtract padding when drawing focus line If there's no scrollbar in the user list it grows as the user arrows around. This is because it wasn't taking padding into account when computing its destination size. https://bugzilla.gnome.org/show_bug.cgi?id=658469 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 178551e3d..664b3fafd 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -247,12 +247,15 @@ UserListItem.prototype = { showFocusAnimation: function(time) { let hold = new Batch.Hold(); + let node = this.actor.get_theme_node(); + let padding = node.get_horizontal_padding(); + let box = this._verticalBox.get_allocation_box(); Tweener.removeTweens(this._focusBin); this._focusBin.width = 0; Tweener.addTween(this._focusBin, - { width: box.x2 - box.x1, + { width: (box.x2 - box.x1 - padding), time: time, transition: 'linear', onComplete: function() {